﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrayParrot.Web.Security
{
    [AttributeUsage(AttributeTargets.Class, Inherited = true)]
    public class AuthorizationAttribute : Attribute
    {
        private string m_pageId = string.Empty;

        public string PageId
        {
            get { return m_pageId; }
            set { m_pageId = value; }
        }

        public AuthorizationAttribute()
        {
            m_pageId = Guid.NewGuid().ToString();
        }

        public AuthorizationAttribute(string pageId)
        {
            m_pageId = pageId;
        }
    }
}
